﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCArtsByCategory.ascx.cs" Inherits="WebAppArtreve.views.shared.components.arts.WUCArtsByCategory" %>
<%@ Register src="WUCArtImage.ascx" tagname="WUCArtImage" tagprefix="uc1" %>
<asp:ListView ID="ListViewArtsByCategoryID" runat="server" 
DataSourceID="ODSArtsByCategoryID">
    <LayoutTemplate>
        <article id="itemPlaceholder" runat="server" />        
    </LayoutTemplate>
    <ItemTemplate>
        <article class="artView artViewByCategory">
            <section class="art-image">
            <a href="Art.aspx?id=<%# Eval("Id")%>">
                <uc1:WUCArtImage ArtId='<%# Eval("Id")%>' ID="WUCArtImage1" runat="server" />            
            </a>
            </section>
            <header>      
            <a href="Art.aspx?id=<%# Eval("Id")%>">          
                <h3><%# Eval("Name") %></h3>
            </a>
                <p><span class="spanCategoryName">Artist: </span><%# Eval("UserNickname")%></p>
                <br />
            </header> 
            <section class="art-description">
                <p class="spanCategoryName">Description:</p>
                <p><%# Eval("Description")%></p>
            </section>            
        </article>    
        <hr />            
    </ItemTemplate>
</asp:ListView>
<asp:ObjectDataSource
    ID="ODSArtsByCategoryID" 
    runat="server" 
    TypeName="CLibArtreve.bll.ArtBLL"  
    SelectMethod="GetArtByCategoryId"
    OnObjectCreating="ODSArtsByCategoryID_OnObjectCreating">
<SelectParameters>
    <asp:QueryStringParameter Name="id" QueryStringField="Id" Type="Int64" />
</SelectParameters>
</asp:ObjectDataSource>
